package OOday02.HomeWork2.Animal;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/7 20:27
 */
public class SwimTest {
    public static void main(String[] args) {
        Fish fh=new Fish("小鲤鱼",6,"红色");
        fh.eat();
        fh.swim();


        Dog dg=new Dog("大黄",6,"黄色");
        dg.eat();
        dg.drink();
        dg.swim();



        Chick ck=new Chick("战斗鸡",3,"金色");
        ck.eat();
        ck.drink();
        ck.layEggs();
    }
}
